package net.dgg.rz.common.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.dgg.rz.common.dao.OrderDao;
import net.dgg.rz.common.entity.Order;
/**
 * 销售订单order
 *<p>@Package: net.dgg.rz.common.service</p>
 *<p>@Title：OrderService</p>
 *<p>@description:</p>
 *<p>@author liulei</p>
 *<p>@date 2018年8月31日</p>
 *<p>@Company dgg</p>
 */
@Service
public class OrderService {

	
	@Autowired
	private OrderDao orderdao;
	
	
	
	
	
	/**
	 * iboos插入销售订单
	 * @param product
	 * @return
	 */
	public int ibossInsert(Order order) {
		return  orderdao.iboosInsertSelective(order);
	}
	 /**
     * 根据销售订单Id验证重复
     * @param orderId
     * @return
     */
	public Order selectByOrderId(Long orderId) {
		return orderdao.selectByOrderId(orderId);
	}
}
